package com.lanjiyin.cloud.question.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 
 * @author tudaojun
 *
 */
@Component
public class SecretConfiguration {
	//加签秘钥Key
	@Value("${app.security.secret}")
	public String secret;
	//AESKey
	@Value("${app.security.aes-key}")
	public String aesKey;
	//AES向量值
	@Value("${app.security.aes-iv}")
	public String aesIv;
	//是否启用通用验证码
	@Value("${app.common.enabled}")
	public boolean enabled;
	//通用验证码
	@Value("${app.common.verifyCode}")
	public String verifyCode;
	public String getSecret() {
		return secret;
	}
	public void setSecret(String secret) {
		this.secret = secret;
	}
	public String getAesKey() {
		return aesKey;
	}
	public void setAesKey(String aesKey) {
		this.aesKey = aesKey;
	}
	public String getAesIv() {
		return aesIv;
	}
	public void setAesIv(String aesIv) {
		this.aesIv = aesIv;
	}
	public boolean isEnabled() {
		return enabled;
	}
	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}
	public String getVerifyCode() {
		return verifyCode;
	}
	public void setVerifyCode(String verifyCode) {
		this.verifyCode = verifyCode;
	}
	
}
